package edu.java.texbooks.test.chapter20;

public class AfricanLion extends Lion {

    public AfricanLion(boolean male, int weight) {
	super(male, weight);

    }

    // "override" is an annotation. It's a new concept in Java 5
    @Override
    public String toString() {
	return String.format("African lion, male: %s, weight: %s", this
		.isMale(), this.getWeight());
    }

    public static void main(String[] args) {
	AfricanLion afro= new AfricanLion(false,12);
	System.out.println(afro.toString());
    }
}
